<?php if (!defined('THINK_PATH')) exit();?><style>
    .table td{
        vertical-align: middle !important;
        line-height: 20px !important;
    }
</style>
<div class="shangPaiCo">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th width="10%">拍单编号</th>
            <th width="20%">车辆信息</th>
            <th width="6%">所在地</th>
            <th width="8%">渠道来源</th>
            <th width="12%">保留价</th>
            <th width="12%">建议起拍价</th>
            <th width="10%">驳回原因</th>
            <th width="8%">操作</th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($k % 2 );++$k;?><tr>
                <td>
                    <?php echo ($list["order_no"]); ?>
                </td>
                <td>
                    <em><a href="/Car/report/car_id/<?php echo ($list["car_id"]); ?>" target="_blank"><?php echo ($list["model"]); ?></a></em><br>
                    初登:<?php echo ($list["first_reg_date"]); ?> / <?php echo ($list["pointer_mileage"]); ?>万公里<br>
                    <?php echo ($list["emission"]); ?> / <?php echo ($list["plate"]); ?>
                    <span style="background-color: #1e7fee;color:#fff;display:inline-block;width: 30px;height: 20px;border-;line-height: 20px;text-align: center;border-radius: 4px;margin-left: 20px;">
                        <?php echo ($list["composite_state"]); echo ($list["accident_level"]); ?>
                    </span>
                </td>
                <td><?php echo ($list["location_area"]); ?></td>
                <td><?php echo ($list["comefrom"]); ?></td>
                <td>
                    <?php echo ($list["reserve_price"]); ?>元
                </td>
                <td>
                    <?php echo ($list["suggest_bid_start_price"]); ?>元
                <td>
                    <?php echo ($list["remark_reject"]? $list["remark_reject"] : "无"); ?>

                    <!--<?php if($list['car_status'] == 7): if($list['re_auction_type'] == 2): ?><em class="daiChong1"><?php echo ($list["car_status_cn"]); ?></em><i>重拍原因</i><div class="chongHover"><sup></sup><p>由于车商违约进行重拍</p></div>
                            <?php else: ?>
                            <em class="daiChong"><?php echo ($list["car_status_cn"]); ?></em><i>重拍原因</i><div class="chongHover"><sup></sup><p><?php echo ($list["re_auction_reason"] ? $list["re_auction_reason"] : "无 "); ?></p></div><?php endif; ?>
                        <?php elseif($list['status'] == 2): ?>
                        <em class="daipaimai">审核驳回</em>
                        <i class="bohui">驳回原因
                            <div class="chongHover">
                                <sup></sup>
                                <p><?php echo ($list["remark_reject"]? $list["remark_reject"] : "无"); ?></p>
                            </div>
                            <?php else: ?>
                            <em><?php echo ($list["car_status_cn"]); ?></em><?php endif; ?>-->
                </td>
                <td>
                    <?php if(($list['car_status'] == 4) or ($list['car_status'] == 7) or ($list['status'] == 2)): ?><a href="javascript:;" onclick="onsale('<?php echo ($list["car_id"]); ?>')" class="paiche">上拍</a><br/><?php endif; ?>
                    <a href="/Car/report/car_id/<?php echo ($list["car_id"]); ?>" target="_blank">查看报告</a><br/>
                    <a href="javascript:void(0)" onclick="failureReport('<?php echo ($list["car_id"]); ?>');" id="car_<?php echo ($list["car_id"]); ?>" >报告失效</a>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
</div>
<div class="pageFaye"><div class="pager"><?php echo ($page); ?></div><div class="clear"></div></div>
<script>
    $(".shangPaiCo ul li .shangW6 i").hover(function(){
        $(this).siblings("div.chongHover").fadeIn()
    },function(){
        $(this).siblings("div.chongHover").fadeOut()
    })

    $(function(){
        $(".listBox .table-bordered tr td .bohui").each(function(){
            $(this).hover(function(){
                $(this).find("div").css("display","block");
            },function(){
                $(this).find("div").css("display","none");
            })
        })
    })
</script>